<template>
  <div class="modal" v-if="visible">
    <div class="companyModal">
      <img class="companyTitle" src="../assets/middleTopHead.png" alt="">
      <div class="headText">
        工单申请详情
      </div>
      <img class="modalClose" @click="close" src="../assets/modalClose.png" alt="">
      <!-- 基本信息 -->
      <template >
        <div class="descript">
          <div>
            <span class="label">报修类型:</span>
            --
          </div>
        </div>
        <div class="descript">
          <div>
            <span class="label">报修人:</span>
           --
          </div>
        </div>
        <div class="descript">
          <div>
            <span class="label">联系方式:</span>
           --
          </div>
        </div>
        <div class="descript">
          <div>
            <span class="label">报修单位:</span>
           --
          </div>
        </div>

        <div class="descript">
          <div>
            <span class="label">详细地址:</span>
           --
          </div>
        </div>
        <div class="descript">
          <div>
            <span class="label">工单申请时间:</span>
           --
          </div>
        </div>
        <div class="descript textarea">
          <span class="label">故障描述:</span>
          故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述故障描述
        </div>
        <div class="descript textarea">
          <span class="label">故障图片:</span>
          <img src="../assets/touixiang.jpg" alt="">
        </div>
      </template>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      visible: false,
      companyDetial: {},
      loading: true
    };
  },
  methods: {
    open() {
      this.loading = true;
      this.visible = true;
    },
    close() {
      this.visible = false;
    },
    changeTab(value) {
      this.chartTab = value;
    }
  },
  mounted() {

  },
  created() {
  }
};
</script>
<style lang="less" scoped>
.modal{
  position: absolute;
  z-index: 9999;
  background: rgba(3, 5, 21, 0.932);
  width: 100%;
  height: 100%;
  transition: all 1s;
}
.companyModal{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%,-50%,0);
  background-image: url('../assets/modalBg2.png');
  background-size: 100% 100%;
  width: 857px;
  height: 1224px;
  transition: all 1s;
  padding-top: 50px;
  .companyTitle{
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 731px;
    height: 73px;
  }
  .headText{
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 731px;
    height: 73px;
    font-size:30px;
    color:#fff;
    font-weight: 600;
    font-family: MicrosoftYaHei;
    text-shadow: 0px 2px 0px rgba(0,47,126,0.46);
  }
  .modalClose{
    width: 44px;
    position: absolute;
    top: -8px;
    right: -7px;
    cursor: pointer;
  }
  .descript{
    padding: 0 25px;
    box-sizing: border-box;
    width: 773px;
    min-height: 74px;
    background: rgba(69,103,199,0.24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
    font-family: PingFangSC, PingFang SC;
    color: #FFFFFF;
    line-height: 40px;
    margin-left: 44px;
    text-align: left;
    &:nth-child(2n){
      background: rgba(58,92,187,0.43);
    }
    .label{
      font-weight: 600;
    }
    &.textarea{
      line-height: 40px;
      .label{
        font-weight: 600;
        margin: 12px 0;
      }
      line-height: 40px;
      min-height: 74px;
      padding-bottom: 20px;
      display: flex;
      overflow-y: auto;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      img{
        height: 220px;
      }
    }
  }
}
</style>
